import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/views/layout'
import ForRouter from '@/views/layout/ForRouter'

Vue.use(Router)
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
//通用路由表
export const commonRouter = [
  {
    path: '',
    name: '首页',
    redirect: '/home',
    hidden: true,
    component: () => import('@/views/home/index'),
  },
  {
    path: '/login',
    name: '登录',
    hidden: true,
    component: () => import('@/views/login/index')
  },
  {
    path: '/404',
    hidden: true,
    component: () => import('@/views/errorPage/404'),
  },
]

//需要权限验证的路由表
export const roleRouter = [
  {
    path:'/home',
    name: "home",
    key: "home",
    component: () => import('@/views/home/index'),
    hidden:true,
  },
  {
    path: '/gmap',
    name: '一张图',
    component: Layout,
    redirect: "/gmap/map2D",
    parentKey: ['yzt', 'zhck', 'zwbg', 'ywsp', 'jdjg'],
    key: "yzt",
    children: [
      {
        path: '/gmap/map2D',
        name: 'map2D',
        meta: { title: '二维地图', icon: 'star', noCache: true },
        component: () => import('@/views/showMap/index'),
      },
      {
        path: '/gmap/map3D',
        name: '三维地图',
        meta: { title: '三维地图', icon: 'star', noCache: true},
        component: () => import('@/views/showMap/threeDimensional'),
      }
    ]
  },
  {
    path: '/integratedWindow',
    name: "综合窗口",
    key: "zhck",
    component: Layout,
    redirect: "/integratedWindow/index",
    parentKey: ['yzt', 'zhck', 'zwbg', 'ywsp', 'jdjg'],
    children: [
      {
        path: '/integratedWindow/index',
        name: 'integratedSearch',
        // meta: { title: '综合查询', icon: 'star', noCache: true, parentUrl: '/integratedWindow', key: 'zhck' }
        meta: { title: '综合查询', icon: 'star', noCache: true, key: 'zhck' }
      },
      {
        path: '/integratedWindow/integratedAccept',
        name: 'integratedAccept',
        meta: { title: '综合受理', icon: 'star', noCache: true, key: 'zhck' },
        component: () => import('@/views/acceptanceTasks/index'),
      },
      {
        path: '/checkzhbox',
        name: "checkzhbox",
        hidden: true,
        meta: { title: "查看", noCache: true, parentUrl: '/integratedWindow/integratedAccept', name: '综合受理' },
        component: () => import('@/views/acceptanceTasks/components/detail/index')
      },
      {
        path: '/integratedWindow/unifySend',
        name: 'unifySend',
        // meta: { title: '统一发件', icon: 'star', noCache: true, parentUrl: 'integratedWindow', key: 'zhck' }
        meta: { title: '统一发件', icon: 'star', noCache: true, key: 'zhck' }
      },
      {
        path: '/integratedWindow/caseCorrection',
        name: 'caseCorrection',
        // meta: { title: '案件补正', icon: 'star', noCache: true, parentUrl: 'integratedWindow', key: 'zhck' }
        meta: { title: '案件补正', icon: 'star', noCache: true, key: 'zhck' }
      },
    ]
  },
  {
    path: '/personalCenter',
    name: '个人中心',
    redirect: '/personalCenter/index',
    component: Layout,
    parentKey: ['personalCenter'],
    key: "personalCenter",
    children: [
      {
        path: '/personalCenter/index',
        name: 'zyly',
        meta: { title: '主要领域', icon: 'star', noCache: true, key: 'personalCenter' }
      },
      {
        path: '/personalCenter/backlog',
        name: 'backlog',
        meta: { title: '我的待办', icon: 'star', noCache: true, key: 'personalCenter' }
      },
      {
        path: '/personalCenter/myResource',
        name: 'myResource',
        meta: { title: '我的资源', icon: 'star', noCache: true, key: 'personalCenter' }
      },
    ]
  },
  {
    path: '/zwbg',
    name: '政务办公',
    component: Layout,
    redirect: "/zwbg/index",
    parentKey: ['yzt', 'zhck', 'zwbg', 'ywsp', 'jdjg'],
    key: "zwbg",
    children: [
      {
        path: '/zwbg/index',
        name: 'zwbg',
        meta: { title: '政务办公', icon: 'star', noCache: true, key: 'zwbg' }
      },
      // {
      //   path: '/mms/ytgl/index',
      //   name: '会商管理',
      //   component: ForRouter,
      //   meta: { title: '会商管理', icon: 'star', noCache: true, key: 'zwbg' },
      //   children: [
      //     {
      //       path: '/mms/ytgl/index',
      //       component: () => import('@/views/framePage/index'),
      //       name: 'ytglIndex',
      //       meta: {title: '议题管理', icon: '', key: 'zwbg', noCache: true}
      //     },
      //     {
      //       path: '/mms/hygl/index',
      //       component: () => import('@/views/framePage/index'),
      //       name: 'hyglIndex',
      //       props: true,
      //       meta: {title: '会议管理', icon: '', key: 'zwbg', noCache: true}
      //     }
      //   ],
      //   hidden: false
      // }
    ]
  },
  {
    path: '/businessApproval',
    component: Layout,
    name: "业务审批",
    redirect: "/todoBox",
    parentKey: ['yzt', 'zhck', 'zwbg', 'ywsp', 'jdjg'],
    key: "ywsp",
    children: [
      {
        path: '/todoBox',
        name: 'todoBox',
        meta: { title: '待办箱', icon: 'daiban', key: 'ywsp' },
        component: () => import('@/views/businessApproval/todoBox/index'),
      },
      // 待办箱的查看
      {
        path: '/businessApproval/todoBox/ck',
        component: () =>
          import('@/views/businessApproval/components/detail/index'),
        name: 'todoDet',
        meta: { title: '查看', name: '待办箱', icon: 'daiban', noCache: true, parentUrl: '/todoBox' },
        hidden: true
      },
      {
        path: '/didBox',
        name: 'didBox',
        meta: { title: '已办箱', icon: 'yiban', key: 'ywsp' },
        component: () => import('@/views/businessApproval/didBox/index'),
      },
       //已办箱的查看
      {
        path: '/didBox/ck',
        component: () =>
          import('@/views/businessApproval/components/detail/index'),
        name: 'didDet',
        meta: { title: '查看', name: '已办箱', icon: 'yiban', noCache: true, parentUrl: '/didBox' },
        hidden: true
      },
      {
        path: '/finishBox',
        name: 'finishBox',
        meta: { title: '办结箱', icon: 'banjie', key: 'ywsp' },
        component: () => import('@/views/businessApproval/finishBox/index'),
      },
      // 办结箱的查看
      {
        path: '/finishBox/ck',
        component: () =>
          import('@/views/businessApproval/components/detail/index'),
        name: 'finishDet',
        meta: { title: '查看', name: '办结箱', icon: 'banjie', noCache: true, parentUrl: '/finishBox' },
        hidden: true
      },
      {
        path: '/urgeBox',
        name: 'urgeBox',
        meta: { title: '督办箱', icon: 'duban', key: 'ywsp' },
        component: () => import('@/views/businessApproval/urgeBox/index'),
      },
      {
        path: '/collectBox',
        name: 'collectBox',
        meta: { title: '收藏箱', icon: 'star', key: 'ywsp' },
        component: () => import('@/views/businessApproval/collectBox/index'),
      },
    ],
  },
  {
    path: '/mytodolist',
    name: '我的待办',
    component: Layout,
    redirect: "/mytodolist/mytodolist",
    key: "grzx",
    children: [
      {
        path: '/mytodolist/mytodolist',
        name: 'mytodolist',
        meta: { title: '我的待办', icon: '', noCache: true, key: 'grzx' }
      }
    ]
  },
  {
    path: '/myresources',
    name: '我的资源',
    component: Layout,
    redirect: "/myresources/myresources",
    key: "wdzy",
    children: [
      {
        path: '/myresources/myresources',
        name: 'myresources',
        meta: { title: '我的资源', icon: '', noCache: true, key: 'wdzy' }
      }
    ]
  },
  {
    path: '/sas',
    name: '监督监管',
    component: Layout,
    redirect: "/sas/cockpit",
    parentKey: ['yzt', 'zhck', 'zwbg', 'ywsp', 'jdjg'],
    key: "jdjg",
    children: [
      {
        path: '/sas/cockpit',
        name: 'cockpit',
        meta: { title: '业务审批驾驶舱', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: '/sas/landlifecycle',
        name: 'landlifecycle',
        meta: { title: '土地生命周期监管', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: '/sas/purpose',
        name: 'purpose',
        meta: { title: '用途管制监管', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: '/sas/examination',
        name: 'examination',
        meta: { title: '审批效能监察', icon: 'star', noCache: true, key: 'jdjg' }
      },
      {
        path: '/sas/project',
        name: 'project',
        meta: { title: '项目监管决策', icon: 'star', noCache: true, key: 'jdjg' }
      }
    ]
  },
  {
    path: '/form',
    redirect: '/formbus/businesstable/index',
    component: Layout,
    name: "表单管理",
    key: "bdgl",
    parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
    children: [
      {
        path: '/formbus/design/app',
        name: 'formModelerIndex',
        meta: { title: '表单设计器', icon: 'daiban', key: 'bdgl', noCache: true },
        component: () => import('@/views/formbus/design/app'),
        hidden: true
      },
      {
        path: '/formbus/design/modeler',
        component: () => import('@/views/formbus/design/modeler'),
        name: 'formModeler',
        meta: {title: '表单设计器', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/design/versionManager',
        component: () => import('@/views/formbus/design/versionManager'),
        name: 'formVersionManager',
        meta: {title: '版本管理', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/businesstable/index',
        component: () => import('@/views/formbus/businesstable/index'),
        name: 'businesstableIndex',
        meta: {title: '业务实体管理', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/formbus/businesstable/inner/index',
        component: () => import('@/views/formbus/businesstable/inner/index'),
        name: 'businessTableInnerAdd',
        meta: {title: '新增业务实体', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/businessobject/index',
        component: () => import('@/views/formbus/businessobject/index'),
        name: 'businessObjIndex',
        meta: {title: '业务对象', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/design/index',
        component: () => import('@/views/formbus/design/index'),
        name: 'designForm',
        meta: {title: '表单模型', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/customDialog/index',
        component: () => import('@/views/formbus/customdialog/index'),
        name: 'customDialogList',
        meta: {title: '对话框管理', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/formbus/businessobject/add',
        component: () => import('@/views/formbus/businessobject/add'),
        name: 'businessObjAdd',
        meta: {title: '新增业务对象', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/formbus/customdialog/add',
        component: () => import('@/views/formbus/customdialog/add'),
        name: 'customdialogAdd',
        meta: {title: '对话框', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/gen',
        component: () => import('@/views/gen/index'),
        name: 'gen',
        meta: {title: '代码生成', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/gen/edit',
        component: () => import('@/views/gen/editTable'),
        name: 'genEdit',
        meta: {title: '代码生成', icon: 'star', key: 'bdgl', noCache: true},
        hidden: true
      },
      {
        path: '/bpm/url/index',
        component: () => import('@/views/bpm/url/index'),
        name: 'urlIndex',
        meta: {title: '外挂表单', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/design/printTemplatesx',
        component: () => import('@/views/formbus/printTemplates/index'),
        name: 'printTemplatesx',
        meta: {title: '打印模板', icon: 'star', key: 'bdgl', noCache: true}
      },
      {
        path: '/form/design/PrintTemplateDetail',
        component: () => import('@/views/formbus/printTemplates/PrintTemplateDetail'),
        name: 'crmPrintDetail',
        hidden: true,
        meta: {title: '打印模板', icon: 'star', key: 'bdgl', noCache: true}
      },
    ],
  },
  {
    path: '/task',
    redirect: '/modelIndex',
    component: Layout,
    name: "流程管理",
    key: "lcpt",
    parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
    children: [
     
      {
        path: '/finance/index',
        name: '流程辅助功能',
        component: ForRouter,
        meta: { title: '流程辅助功能', icon: 'star', noCache: true, key: 'lcpt' },
        children: [
          {
            path: '/modelIndex',
            component: () => import('@/views/bpm/model/index'),
            name: 'modelIndex',
            meta: {title: '模型管理', icon: '', key: 'lcpt', noCache: true}
          },
          // {
          //   path: '/bpm/model/v4',
          //   component: () => import('@/views/bpm/model/v4'),
          //   name: 'v4Index',
          //   meta: {title: '业务流程设计器', icon: '', noCache: true}
          // },
          {
            path: '/bpm/runtime/revisit',
            component: () => import('@/views/bpm/revisit/index'),
            name: 'revisitIndex',
            meta: {title: '流程回放', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/btn/index',
            component: () => import('@/views/bpm/btn/index'),
            name: 'span',
            meta: {title: '审批按钮', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/variable/variable/index',
            component: () => import('@/views/variable/variable/index'),
            name: 'variableIndex',
            meta: {title: '审批意见', icon: '', key: 'lcpt', noCache: true},
          },
          {
            path: '/approval/index',
            component: () => import('@/views/approval/index'),
            name: 'approvalIndex',
            meta: {title: '常用语', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/testBpm',
            component: () => import('@/views/bpm/model/testBpm'),
            name: 'testBpm',
            meta: {title: '自动化流程测试', icon: '', key: 'lcpt', noCache: true},
          },
          {
            path: '/simulation',
            component: () => import('@/views/bpm/model/simulation'),
            name: 'simulBpm',
            meta: {title: '自动化仿真(BPS平台)', icon: '', key: 'lcpt', noCache: true},
          },
          {
            path: '/diffModel',
            component: () => import('@/views/bpm/model/diffModel'),
            name: 'diffBpm',
            meta: {title: '模型对比工具(BPS平台)', icon: '', key: 'lcpt', noCache: true},
          },
          {
            path: 'busModel',
            component: () => import('@/views/bpm/model/busModel'),
            name: 'busModel',
            meta: {title: '模型业务设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/bpmOftenFlow/index',
            component: () => import('@/views/bpm/bpmOftenFlow/index'),
            name: 'bpmOftenFlow',
            meta: {title: '常用流程', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/addBpmOftenFlow/index',
            component: () => import('@/views/bpm/bpmOftenFlow/add'),
            name: 'addBpmOftenFlow',
            meta: {title: '添加常用流程', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/versionManager',
            component: () => import('@/views/bpm/model/versionManager'),
            name: 'versionManager',
            meta: {title: '版本管理', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/runtime/instance/v1/getInstanceLis',
            component: () => import('@/views/bpm/taskinstance/index'),
            name: 'taskInstance',
            meta: {title: '实例管理', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/his/instance/resurrection',
            component: () => import('@/views/bpm/resurrection/index'),
            name: 'resurrection_instance',
            meta: {title: '历史实例复活', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/his/instance/setting',
            component: () => import('@/views/bpm/resurrection/setting'),
            name: 'resurrection_instance_setting',
            meta: {title: '实例复活设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/urging',
            component: () => import('@/views/bpm/model/urging'),
            name: 'urging_task_setting',
            meta: {title: '催办设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/preUser',
            component: () => import('@/views/bpm/model/preUser'),
            name: 'preUser',
            meta: {title: '全局预览插件', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/expire',
            component: () => import('@/views/bpm/model/expire'),
            name: 'expire_task_setting',
            meta: {title: '到期提醒', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/sequenceModel',
            component: () => import('@/views/bpm/model/sequenceModel'),
            name: 'sequenceModel_setting',
            meta: {title: '连线按钮', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/skipModel',
            component: () => import('@/views/bpm/model/skipModel'),
            name: 'skipModel_setting',
            meta: {title: '自动跳过设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/backModel',
            component: () => import('@/views/bpm/model/backModel'),
            name: 'backModel_setting',
            meta: {title: '退回线设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/model/businessFormSettings',
            component: () => import('@/views/bpm/model/businessFormSettings'),
            name: 'businessFormSettings_setting',
            meta: {title: '业务表单设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/messageTemplate/list',
            component: () => import('@/views/bpm/messageTemplate/index'),
            name: 'messageTemplate',
            meta: {title: '流程消息模板', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/script/index',
            component: () => import('@/views/bpm/script/index'),
            name: 'scriptIndex',
            meta: {title: '常用脚本管理', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/agent/setting/index',
            component: () => import('@/views/bpm/agent/setting/index'),
            name: 'settingIndex',
            meta: {title: '委托设置', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/demo/open',
            component: () => import('@/views/bpm/demo/open'),
            name: 'urlDemoOpen',
            meta: {title: '启动', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/url/item',
            component: () => import('@/views/bpm/url/item'),
            name: 'url_data_item_index',
            meta: {title: '表单数据设置', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/extbpm/form/index',
            component: () => import('@/views/extbpm/form/index'),
            name: 'FormIndex',
            meta: {title: '工单管理', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/extbpm/process/BpmAutoDesformApply',
            component: () => import('@/views/extbpm/process/BpmAutoDesformApply'),
            name: 'BpmAutoDesformApply',
            meta: {title: '工单申请', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/monitor/instace/indexArchive',
            component: () => import('@/views/bpm/monitor/instace/indexArchive'),
            name: 'indexArchive',
            meta: {title: '归档流程', icon: '', key: 'lcpt', noCache: true}
          }
        ]
      },
      {
        path: '/bpm/commu/ruIndex',
        name: '阅读事项',
        component: ForRouter,
        meta: { title: '阅读事项', icon: 'star', noCache: true, key: 'lcpt' },
        children: [
          {
            path: '/bpm/commu/ruIndex',
            component: () => import('@/views/bpm/commu/ruIndex'),
            name: 'commuRuIndex',
            meta: {title: '待阅任务', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/commu/hiIndex',
            component: () => import('@/views/bpm/commu/hiIndex'),
            name: 'commuHiIndex',
            meta: {title: '已阅任务', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/commu/details',
            component: () => import('@/views/bpm/commu/details'),
            name: 'runCommuDetails',
            meta: {title: '待阅任务明细', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          },
          {
            path: '/bpm/commu/Hidetails',
            component: () => import('@/views/bpm/commu/hiDetails'),
            name: 'hiCommuDetails',
            meta: {title: '已阅任务明细', icon: '', key: 'lcpt', noCache: true},
            hidden: true
          }
        ],
        hidden: false
      },
      {
        path: '/bpm/msg/ruIndex',
        name: '通知事项',
        component: ForRouter,
        meta: { title: '通知事项', icon: 'star', noCache: true, key: 'lcpt' },
        children: [
          {
            path: '/bpm/msg/ruIndex',
            component: () => import('@/views/bpm/msg/ruIndex'),
            name: 'msgRuIndex',
            meta: {title: '未读消息', icon: '', key: 'lcpt', noCache: true}
          },
          {
            path: '/bpm/msg/hiIndex',
            component: () => import('@/views/bpm/msg/hiIndex'),
            name: 'HiIndex',
            meta: {title: '已读消息', icon: '', key: 'lcpt', noCache: true}
          }
        ],
        hidden: false
      },
    ]
  },
  {
    path: '/authoritymanagement',
    name: '权限管理',
    component: Layout,
    redirect: "/authoritymanagement/index",
    key: "qxgl",
    parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
    children: [
      {
        path: '/authoritymanagement/index',
        name: 'qxgl',
        meta: { title: '权限管理', icon: '', noCache: true, key: 'qxgl' },
        component: () => import('@/views/backstage/authoritymanagement')
      }
    ]
  },
  {
    path: '/yypz',
    name: '应用配置',
    component: Layout,
    redirect: "/yypz/index",
    key: "yypz",
    parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
    children: [
      {
        path: '/yypz/index',
        name: 'ewdtpz',
        meta: { title: '二维地图配置', icon: 'star', noCache: true, key: 'ewdtpz' }
      },
      {
        path: '/yypz/swdtpz',
        name: 'swdtpz',
        meta: { title: '三维地图配置', icon: 'star', noCache: true, key: 'swdtpz' }
      },
    ]
  },
  {
    path: '/electronicSignature',
    name: '电子签章',
    component: Layout,
    redirect: "/electronicSignature/index",
    key: "dzqz",
    parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
    children: [
      {
        path: '/electronicSignature/index',
        name: 'dzqz',
        meta: { title: '电子签章', icon: 'star', noCache: true, key: 'dzqz' }
      }
    ]
  },
  {
    path: '/ectronicdata',
    name: '电子资料',
    component: Layout,
    redirect: "/ectronicdata/index",
    key: "dzzl",
    parentKey: ['bdgl', 'lcpt', 'qxgl', 'dzqz', 'dzzl', 'yypz'],
    children: [
      {
        path: '/ectronicdata/index',
        name: 'dzzl',
        meta: { title: '电子资料', icon: 'star', noCache: true, key: 'dzzl' }
      }
    ]
  },
]

export default new Router({
  routes: commonRouter
})